OtpFieldColors
Colors of an OtpField, created with OtpFieldDefaults.colors. Checked pairs (opaque colors only; masked OtpMask.FilledCell cells use the border colors):
text and errorText against cellBackground, 4.5:1 (WCAG 1.4.3);
cellBorder, focusedCellBorder, errorCellBorder and placeholder against cellBackground, 3:1 (WCAG 1.4.11);
focusedCellBorder against cellBorder, 3:1 (WCAG 2.4.13).
Violations are logged and listed in contrastWarnings but never thrown, so brand colors remain usable. Disabled colors are exempt.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Contrast problems found at construction, empty when compliant. Contrast is warned (and logged once per instance), not enforced, so brand colors remain usable.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard